package com.mobor.moborsvr.obj.category.factory;

import org.hibernate.SessionFactory;

import com.mobor.moborsvr.obj.category.dao.CategoryObjectDao;

/**
 * Factory interface to generate DAO to look for existing object categories.
 * In general, each searcher is a bean with scope of Spring prototype.
 * @author teroleg
 *
 */
public interface CategorySearchWorkerFactory {
	/**
	 * Generates DAO to look for existing object categories. 
	 * @param sessionFactory Hibernate session factory to access database
	 * @return generated DAO
	 */
	public CategoryObjectDao getCategoryObjectDao(SessionFactory sessionFactory);

}